﻿using UnityEngine;
using System.Collections;


public class GoogleLeaderBoard
{
    static AndroidJavaObject LeaderBoardAndroidClass;

    public static void Init ()
    {
        
        LeaderBoardAndroidClass = new AndroidJavaObject("com.tj.LeaderBoard");
		Debug.Log("TJSDK---google排行榜初始化");
        LeaderBoardAndroidClass.Call("InitLeaderBoard");
    }

    public static void ReportScore (string LeadBoardId , int score)
    {
		Debug.Log("TJSDK---google排行榜提交分数");
        LeaderBoardAndroidClass.Call("SubmitScore", LeadBoardId, score);
    }

    public static void ShowLeaderboard ()
    {
		Debug.Log("TJSDK---google排行榜展示");
        LeaderBoardAndroidClass.Call("ShowLeardBoard");
    }
}
